﻿<?phpclass Event {	public $name;	public $eventType;	public $startDate;	public $endDate;	public $location;	public $owner;	public $eventMembers;	public $eventProperties;	public $eventContacts;	public $tasks;	function __construct($id )	{		$id = intval($id);		if ($id < 1)			$id = $_SESSION['id'];					$res = query("select e.name e.eventType e.startDate e.endDate e.location e.owner from Event e where e.id = $id");		if (!$res)			return null;		$row = $res->fetch_assoc();					$name = stripslashes($row['name']);;		$eventType = stripslashes($row['eventType']);;		$location = stripslashes($row['location']);;		$owner = $row["owner"];				$startDate ;		$endDate ;				$eventMembers;		$eventProperties;		$eventContacts;		$tasks;	}}?>